module.exports = app => {
    const mongoose = app.mongoose;
    mongoose.pluralize(null)
    const Schema = mongoose.Schema;
    const AdminEvalSchema = new Schema(
        {
            userId: { ref: "Userinfo", required: true, type: mongoose.Types.ObjectId, },
            orderId: {
                type: String,
                required: true
            },
            content: { type: String },
            imgFiles: { type: [String] },
            shopRate: { type: Number, default: 1 },
            envRate: { type: Number, default: 1 },
            serviceRate: { type: Number, default: 1 },
        }, { versionKey: false, timestamps: true })
    return mongoose.model("AdminEval", AdminEvalSchema)
}